How To Debug Automation Code When It Is Not Working As Expected